<?php

/**
 * Radcodes - SocialEngine Module
 *
 * @category   Application_Extensions
 * @package    Badge
 * @copyright  Copyright (c) 2009-2010 Radcodes LLC (http://www.radcodes.com)
 * @license    http://www.radcodes.com/license/
 * @version    $Id$
 * @author     Vincent Van <vincent@radcodes.com>
 */

return array (

// ------- rssfeed categories


array ('title' => 'Badge Categories', 'description' => 'Displays a list of badge categories.', 'category' => 'Badges', 'type' => 'widget', 'name' => 'badge.categories', 'defaultParams' => array ('title' => '', 'details' => 0, 'photo' => 1, 'descriptionlength' => 68 ), 'adminForm' => array ('elements' => array (array ('Text', 'title', array ('label' => 'Title' )//'value' => 'Badge Categories',
 ), array ('Select', 'details', array ('label' => 'Show Details', 'multiOptions' => array (1 => 'Yes', 0 => 'No' ), 'value' => 0 ) ), array ('Select', 'photo', array ('label' => 'Show Photo', 'multiOptions' => array (1 => 'Yes', 0 => 'No' ), 'value' => 1 ) ), array ('Text', 'descriptionlength', array ('label' => 'Max Description Characters', 'value' => 68 ) ) ) ) ), 

// ------- on user profile tab


array ('title' => 'Profile Awards', 'description' => 'Displays a member\'s awards on their profile tab or sidebar.', 'category' => 'Badges', 'type' => 'widget', 'name' => 'badge.profile-awards', 'defaultParams' => array ('title' => 'Awards', 'titleCount' => true, 'max' => 5, 'display_style' => 'tab', 'photolink' => 'badge' ), 'adminForm' => array ('elements' => array (array ('Text', 'title', array ('label' => 'Title', 'value' => 'Awards' ) ), array ('Text', 'max', array ('label' => 'Max Awards', 'value' => 5 ) ), array ('Radio', 'display_style', array ('label' => 'Display Style', 'multiOptions' => array ('tab' => 'Profile Tab - Full details in listing wide format.', 'side' => 'Profile Sidebar - Simple mode (big photo and title).' ), 'value' => 'tab' ) ), array ('Select', 'showtitle', array ('label' => 'Show Award Title', 'multiOptions' => array (1 => 'Yes', 0 => 'No' ), 'value' => 1 ) ), array ('Select', 'showdescription', array ('label' => 'Show Award Description', 'multiOptions' => array (1 => 'Yes', 0 => 'No' ), 'value' => 1 ) ), array ('Select', 'showmeta', array ('label' => 'Show Award Meta Info', 'multiOptions' => array (1 => 'Yes', 0 => 'No' ), 'value' => 1 ) ), array ('Select', 'photolink', array ('label' => 'Photo Link To', 'multiOptions' => array ('badge' => 'Badge profile page', 'award' => 'Award detail page' ), 'value' => 'badge' ) ) ) ) ), 

// ------- on user profile tab


array ('title' => 'Profile Badges', 'description' => 'Displays a member\'s badges on their profile side bar.', 'category' => 'Badges', 'type' => 'widget', 'name' => 'badge.profile-badges', 'defaultParams' => array ('title' => '', 'titleCount' => false, 'showtitle' => 1 ), 'adminForm' => array ('elements' => array (array ('Text', 'title', array ('label' => 'Title' )// 'value' => 'Badges',
 ), array ('Select', 'showtitle', array ('label' => 'Show Badge Title', 'multiOptions' => array (1 => 'Yes', 0 => 'No' ), 'value' => 1 ) ) ) ) ), 

// ------- list awards


array ('title' => 'List Awards', 'description' => 'Displays a list of awarded badges with different filtering options (can be used to build variety of award listings such as Recent Awards, List of members who got specific badge etc..)', 'category' => 'Badges', 'type' => 'widget', 'name' => 'badge.list-awards', 'defaultParams' => array ('title' => 'Recent Awards', 'max' => 5, 'order' => 'recent', 'display_style' => 'narrow', 'showphoto' => 1, 'showbadge' => 1, 'showdetails' => 1 ), 'adminForm' => array ('elements' => array (array ('Text', 'title', array ('label' => 'Title', 'value' => 'Recent Awards' ) ), array ('Text', 'max', array ('label' => 'Max Awards', 'description' => 'Enter maximum number of awards to be shown', 'value' => 10 ) ), array ('Select', 'badge', array ('label' => 'Badge', 'description' => 'Limiting awards of selected badge.', 'multiOptions' => array ("" => "" ) + Engine_Api::_ ()->badge ()->getBadgesAsSubOptions ( Badge_Model_Badge::MEMBERSHIP_TYPE_AWARD ), 'filters' => array (new Radcodes_Lib_Filter_Null () ) ) ), array ('Text', 'user', array ('label' => 'User ID', 'description' => '(optionally) only show awards of inputted user id.' ) ), array ('Select', 'featured', array ('label' => 'Featured', 'multiOptions' => array ("" => "ALL - both featured/non-featured awards", 1 => "Yes - only featured awards", 0 => "No - only none-featured awards" ), 'value' => "", 'filters' => array (new Radcodes_Lib_Filter_Null () ) ) ), array ('Select', 'order', array ('label' => 'Sort By', 'multiOptions' => array ('recent' => 'Most Recent', 'alphabet' => 'Award Title', 'random' => 'Randomized', 'mostviewed' => 'Most Viewed', 'mostcommented' => 'Most Commented', 'mostliked' => 'Most Liked' ), 'value' => 'recent' ) ), array ('Radio', 'display_style', array ('label' => 'Display Style', 'multiOptions' => array ('narrow' => 'Narrow - simple mode, usually for left / right column', 'wide' => 'Wide - full mode, best fit for main / center column' ), 'value' => 'narrow' ) ), array ('Select', 'showphoto', array ('label' => 'Show Photo', 'multiOptions' => array (1 => 'Yes', 0 => 'No' ), 'value' => 1 ) ), array ('Select', 'showbadge', array ('label' => 'Show Badge', 'multiOptions' => array (1 => 'Yes', 0 => 'No' ), 'value' => 1 ) ), array ('Select', 'showdetails', array ('label' => 'Show Details', 'multiOptions' => array (1 => 'Yes', 0 => 'No' ), 'value' => 1 ) ) )

 ) ), 

// ------- list badges


array ('title' => 'List Badges', 'description' => 'Displays a list of posted badges with different filtering options (can be used to build variety of badge listings such as Recent Badges)', 'category' => 'Badges', 'type' => 'widget', 'name' => 'badge.list-badges', 'defaultParams' => array ('title' => 'Recent Badges', 'max' => 20, 'order' => 'recent', 'display_style' => 'wide', 'showphoto' => 1, 'showdetails' => 1 ), 'adminForm' => array ('elements' => array (array ('Text', 'title', array ('label' => 'Title', 'value' => 'Recent Badges' ) ), array ('Text', 'max', array ('label' => 'Max Badges', 'description' => 'Enter maximum number of badges to be shown', 'value' => 20 ) ), array ('Select', 'category', array ('label' => 'Category', 'multiOptions' => array ("" => "" ) + Engine_Api::_ ()->badge ()->convertCategoriesToArray ( Engine_Api::_ ()->badge ()->getCategories () ) ) ), array ('Select', 'membership_type', array ('label' => 'Assignment Type', 'multiOptions' => array ("" => "" ) + array (Badge_Model_Badge::MEMBERSHIP_TYPE_AWARD => 'Award (Manual)', Badge_Model_Badge::MEMBERSHIP_TYPE_MAPPING => 'Mapping (Automatic)' ) ) ), array ('Select', 'order', array ('label' => 'Sort By', 'multiOptions' => array ('recent' => 'Most Recent', 'alphabet' => 'Badge Title', 'random' => 'Randomized' ), 'value' => 'recent' ) ), array ('Radio', 'display_style', array ('label' => 'Display Style', 'multiOptions' => array ('narrow' => 'Narrow - simple mode, usually for left / right column', 'wide' => 'Wide - full mode, best fit for main / center column' ), 'value' => 'wide' ) ), array ('Select', 'showphoto', array ('label' => 'Show Photo', 'multiOptions' => array (1 => 'Yes', 0 => 'No' ), 'value' => 1 ) ), array ('Select', 'showdetails', array ('label' => 'Show Details', 'multiOptions' => array (1 => 'Yes', 0 => 'No' ), 'value' => 1 ) ) ) ) ), 

// ------- top menu nav
array ('title' => 'Menu Badges', 'description' => 'Displays top menu navigation (Browse Badges | Awards) on badge landing home page.', 'category' => 'Badges', 'type' => 'widget', 'name' => 'badge.main-menu' ), 

// ------- search form


array ('title' => 'Search Badges', 'description' => 'Displays search form on badge home page.', 'category' => 'Badges', 'type' => 'widget', 'name' => 'badge.search-form' ), 

// ------- featured badge
array ('title' => 'Featured Award', 'description' => 'Displays a randomized featured awarded badge.', 'category' => 'Badges', 'type' => 'widget', 'name' => 'badge.featured-award', 'defaultParams' => array ('title' => 'Featured Award' ) ) )

;

